warning fixes in shapelib. From Alexander Stohr.
authorrobertl <robertl>
Mon, 27 Sep 2004 01:13:58 +0000 (01:13 +0000)
committerrobertl <robertl>
Mon, 27 Sep 2004 01:13:58 +0000 (01:13 +0000)
shapelib/shapefil.h
shapelib/shpopen.c

index 86941f79607929f7154278b3e4e11012252c6b5d..00d7d0d2b789736808643d37bdc3c63b5d134285 100644 (file)
@@ -2,7 +2,7 @@
 #define _SHAPEFILE_H_INCLUDED
 
 /******************************************************************************
- * $Id: shapefil.h,v 1.1 2004/09/20 17:22:55 robertl Exp $
+ * $Id: shapefil.h,v 1.2 2004/09/27 01:13:58 robertl Exp $
  *
  * Project:  Shapelib
  * Purpose:  Primary include file for Shapelib.
@@ -37,6 +37,9 @@
  ******************************************************************************
  *
  * $Log: shapefil.h,v $
+ * Revision 1.2  2004/09/27 01:13:58  robertl
+ * warning fixes in shapelib.  From Alexander Stohr.
+ *
  * Revision 1.1  2004/09/20 17:22:55  robertl
  * Bring in shapefil.h.
  *
@@ -299,11 +302,11 @@ void SHPAPI_CALL
 SHPObject SHPAPI_CALL1(*)
       SHPCreateObject( int nSHPType, int nShapeId,
                        int nParts, int * panPartStart, int * panPartType,
-                       int nVertices, double * padfX, double * padfY,
-                       double * padfZ, double * padfM );
+                       int nVertices, const double * padfX, const double * padfY,
+                       const double * padfZ, const double * padfM );
 SHPObject SHPAPI_CALL1(*)
       SHPCreateSimpleObject( int nSHPType, int nVertices,
-                             double * padfX, double * padfY, double * padfZ );
+                             const double * padfX, const double * padfY, const double * padfZ );
 
 int SHPAPI_CALL
       SHPRewindObject( SHPHandle hSHP, SHPObject * psObject );
index 03ddae4c73709f996ac0339f26483e7ed925b7c0..54d04a5dcc814893b9c2c50690a0beadb0ded967 100644 (file)
@@ -1,5 +1,5 @@
 /******************************************************************************
- * $Id: shpopen.c,v 1.1 2004/09/20 17:21:22 robertl Exp $
+ * $Id: shpopen.c,v 1.2 2004/09/27 01:13:58 robertl Exp $
  *
  * Project:  Shapelib
  * Purpose:  Implementation of core Shapefile read/write functions.
@@ -34,6 +34,9 @@
  ******************************************************************************
  *
  * $Log: shpopen.c,v $
+ * Revision 1.2  2004/09/27 01:13:58  robertl
+ * warning fixes in shapelib.  From Alexander Stohr.
+ *
  * Revision 1.1  2004/09/20 17:21:22  robertl
  * Check in shapelib and experimental prototype of crude shapefile support.
  *
  */
 
 static char rcsid[] = 
-  "$Id: shpopen.c,v 1.1 2004/09/20 17:21:22 robertl Exp $";
+  "$Id: shpopen.c,v 1.2 2004/09/27 01:13:58 robertl Exp $";
 
 #include "shapefil.h"
 
@@ -789,8 +792,8 @@ SHPComputeExtents( SHPObject * psObject )
 SHPObject SHPAPI_CALL1(*)
 SHPCreateObject( int nSHPType, int nShapeId, int nParts,
                  int * panPartStart, int * panPartType,
-                 int nVertices, double * padfX, double * padfY,
-                 double * padfZ, double * padfM )
+                 int nVertices, const double * padfX, const double * padfY,
+                 const double * padfZ, const double * padfM )
 
 {
     SHPObject  *psObject;
@@ -898,8 +901,8 @@ SHPCreateObject( int nSHPType, int nShapeId, int nParts,
 
 SHPObject SHPAPI_CALL1(*)
 SHPCreateSimpleObject( int nSHPType, int nVertices,
-                       double * padfX, double * padfY,
-                       double * padfZ )
+                       const double * padfX, const double * padfY,
+                       const double * padfZ )
 
 {
     return( SHPCreateObject( nSHPType, -1, 0, NULL, NULL,